package com.hzd.ebean;

import org.avaje.agentloader.AgentLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Ebean加强
 *
 * @author christ
 * @date 2015/7/23
 */
public class Enhancer {

    protected static Logger logger = LoggerFactory.getLogger(Enhancer.class);

    static {
        logger.error("... preStart");
        if (!AgentLoader.loadAgentFromClasspath("avaje-ebeanorm-agent", "debug=1;packages=com.hzd.**")) {
            logger.error("avaje-ebeanorm-agent not found in classpath - not dynamically loaded");
        }
    }
}
